package com.qing.cheng.service.impl;


import com.qing.cheng.entity.QcClass;
import com.qing.cheng.mapper.QcClassMapper;
import com.qing.cheng.service.QcClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class QcClassServiceImpl implements QcClassService {
    @Autowired(required = false)
    private QcClassMapper qcClassMapper;


    @Override
    public void insert(QcClass qcClass) {
        qcClassMapper.insert(qcClass);
    }

    @Override
    public QcClass selectById(int id) {
        return qcClassMapper.selectByPrimaryKey(id);
    }
}
